using Universe.OneC;

namespace Universe.OneC
{
    public class WorkingProcess
    {
        private Cluster _Cluster;
        private string _HostName;
        private int _MainPort;

        private WorkingProcess()
        {
            this._HostName = "";
            this._MainPort = 0x619;
        }

        public WorkingProcess(Cluster cluster)
        {
            this._HostName = "";
            this._MainPort = 0x619;
            this._Cluster = cluster;
        }

        public override string ToString()
        {
            return this._MainPort.ToString();
        }

        public string Address
        {
            get
            {
                return ("tcp://" + this._HostName + ":" + this._MainPort.ToString());
            }
        }

        public Cluster Cluster
        {
            get
            {
                return this._Cluster;
            }
        }

        public string HostName
        {
            get
            {
                return this._HostName;
            }
            set
            {
                this._HostName = value;
            }
        }

        public int MainPort
        {
            get
            {
                return this._MainPort;
            }
            set
            {
                this._MainPort = value;
            }
        }
    }
}